﻿<ContentDialog
    x:Class="wToggl.ManualEntryDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Title="MANUAL TIME ENTRY"
    PrimaryButtonText="done"  
    SecondaryButtonText="cancel"
    PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
    SecondaryButtonClick="ContentDialog_SecondaryButtonClick">
    <FlyoutBase.AttachedFlyout>
        <Flyout>
            <Grid>
                <TextBlock Foreground="{StaticResource PhoneAccentBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource BodyTextBlockStyle}" Text="Start time must be before end time."/>
            </Grid>
        </Flyout>
    </FlyoutBase.AttachedFlyout>
    <StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">   
        <TextBlock Text="Start time"/>
        <DatePicker Name="StartDatePicker"/>
        <TimePicker Name="StartTimePicker"/>
        <TextBlock Text="End time"/>
        <DatePicker Name="EndDatePicker"/>
        <TimePicker Name="EndTimePicker"/>
    </StackPanel>
</ContentDialog>
